package design.patterns.builder;

/**
 * @author daxue0929
 * @date 2023/4/17
 * Ofo单车构建者，用来构建Ofo单车
 */

public class OfoBuilder extends Builder {
    @Override
    public void buildFrame() {
        bike.setFrame("铝合金车架");
    }

    @Override
    public void buildSeat() {
        bike.setSeat("橡胶车座");
    }
    @Override
    public Bike createBike() {
        return bike;
    }

}
